﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pattern_Decorator
{
    class Program
    {
        static void Main(string[] args)
        {
            ConcreteComponent compontent = new ConcreteComponent();
            ConcreteDecoratorA decorator_a = new ConcreteDecoratorA();
            ConcreteDecoratorB decoretor_b = new ConcreteDecoratorB();

            decorator_a.SetComponent(compontent);
            decoretor_b.SetComponent(decorator_a);
            decoretor_b.Operation();
        }
    }
}
